<template>
    <div>
        孙
        <button @click="send">子传父</button>
    </div>
</template>
<script>
import { inject } from 'vue';


export default{
   setup(){
       console.log(inject('msg'))
   }
  
}
</script>